#-*-coding:utf-8-*-
import unittest,requests
import HTMLTestRunner
import json
import com.note.simplefish.config.ReadConfig as readConfig
class TestestCase(unittest.TestCase):
    def setUp(self):
        pass
    def test_login(self):
            baseUrl=readConfig.ReadConfig().get_http("baseUrl")
            loginUrl=baseUrl+"/user/get"
            res=requests.post(loginUrl,{"mobile":"13616100094","password":"123456"})
            if res.status_code==200:
                content=str(res.content,"utf-8")
                print("***********************res"+content)
                jsonObj=json.loads(content);
                errorCode=jsonObj["errorCode"];
                self.assertEquals(errorCode,"0",content);
    def tearDown(self):
        pass